﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RN
{
    public class Message
    {
        private int id;
        private String from;
        private String to;
        private String subject;
        private String messages;
        private bool isRead;
        public Message(String from, String to, String subject, String messages)
        {
            this.from = from;
            this.to = to;
            this.subject = subject;
            this.messages = messages;
        }

        public String From
        {
            get { return from; }
            set { from = value; }
        }

        public String To
        {
            get { return to; }
            set { to = value; }
        }

        public String Subject
        {
            get { return subject; }
            set { subject = value; }
        }

        public String Messages
        {
            get { return messages; }
            set { messages = value; }
        }

        public bool IsRead
        {
            get { return isRead; }
            set { isRead = value; }
        }

        public int Id
        {
            get { return id; }
            set { id = value; }
        }

    }
}
